'use strict';
var even_asc_odd_desc = function(collection){
    let arr1=[],arr2=[],arr=[];
    for(let i of collection){
        if(i%2===0){
            arr1.push(i);
        }
        else {
            arr2.push(i);
        }
    }
    let arr3=arr1.sort(
        function sorted(a,b){
            return a-b;
        }
    );
    let arr4=arr2.sort(
        function sorted1(a,b){
            return b-a;
        }
    );
    arr=arr3.concat(arr4);
    return arr;
};
module.exports = even_asc_odd_desc;
